//
//  SY_collecTionCell.m
//  ShangChengMoBan
//
//  Created by 张铁军 on 16/8/19.
//  Copyright © 2016年 ping. All rights reserved.
//

#import "SY_collecTionCell.h"

@implementation SY_collecTionCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    return self;
}

-(void)initView{
    _productImage = [[UIImageView alloc]initWithFrame:CGRectMake(10 , 10 , self.width - 20 ,self.height -  50)];
    _productImage.layer.cornerRadius = 4;
    [self addSubview:_productImage];
    
    _namelabel = [[BaseLabel alloc]initWithFrame:CGRectMake(_productImage.left, _productImage.bottom + 10, _productImage.width, 30) andFont:PuTongFont];
    _namelabel.text = @"测试产品名";
    
    [self addSubview:_namelabel];
}

@end
